package top.healthylife.gateway.platform.baihang.api.api.bankcardcheck;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0107.req.BHReqBCPhoneCheckDto;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0107.res.BHResBCPhoneCheckDto;

/**
 * 银行卡手机号核验
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "银行卡手机号核验" , info = "银行卡手机号核验")
public class BHBCPhoneCheckApi implements ParentFace<BHReqBCPhoneCheckDto, BHResBCPhoneCheckDto> {

    private static final String PRODUCT_CODE = "BBAS0107";

    @Override
    public BHResBCPhoneCheckDto execute(BHReqBCPhoneCheckDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResBCPhoneCheckDto.class);
    }
}
